﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace CaiyinSoft.NetGather.Protocol
{

    public enum URLItemStatus
    { 
        NotRunning=0,
        Running=1,
        Publicing=2,
        Finished=3,
        Error=99
    }

    [Serializable]
    public struct URLItem
    {
        public int ID;
        public string URL;
        public URLItemStatus Status; // 0:未运行;1:运行中;2已完成;99:出错了;
    }

    public interface IURLSource
    {
        void SetURLStatus(URLItem Item, URLItemStatus Status);
        List<URLItem> GetURLCollection ();

        InnerFormBase GetEditForm();

    }
}
